#include "StdAfx.h"
#include "timer_queue_upcall.h"

timer_queue_upcall::timer_queue_upcall(void)
{
}

timer_queue_upcall::~timer_queue_upcall(void)
{
}

int 
timer_queue_upcall::timeout (timer_queue_type &timer_queue,
			 aot::inet::itimer_queue_event_handler *handler,
			 const void *arg,
			 int recurring_timer,
			 const ACE_Time_Value &cur_time)
{
	if( handler )
	{
		handler->on_time_out(const_cast<void*>(arg));
	}
	return 0;
}

int 
timer_queue_upcall::deletion (timer_queue_type &timer_queue,
			  aot::inet::itimer_queue_event_handler *handler,
			  const void *arg)
{
	return 0;
}

int 
timer_queue_upcall::registration (timer_queue_type &timer_queue,
				  aot::inet::itimer_queue_event_handler *handler,
				  const void *arg)
{
	return 0;
}

int 
timer_queue_upcall::preinvoke (timer_queue_type &timer_queue,
			   aot::inet::itimer_queue_event_handler *handler,
			   const void *arg,
			   int recurring_timer,
			   const ACE_Time_Value &cur_time,
			   const void *&upcall_act)
{
	return 0;
}

int 
timer_queue_upcall::postinvoke (timer_queue_type &timer_queue,
				aot::inet::itimer_queue_event_handler *handler,
				const void *arg,
				int recurring_timer,
				const ACE_Time_Value &cur_time,
				const void *upcall_act)
{
	return 0;
}

int 
timer_queue_upcall::cancel_type (timer_queue_type &timer_queue,
				 aot::inet::itimer_queue_event_handler *handler,
				 int dont_call,
				 int &requires_reference_counting)
{
	return 0;
}

int 
timer_queue_upcall::cancel_timer (timer_queue_type &timer_queue,
				  aot::inet::itimer_queue_event_handler *handler,
				  int dont_call,
				  int requires_reference_counting)
{
	return 0;
}